package com.zm.demo.core.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2020/2/29.
 * -Xms20M -Xmx20M -XX:+HeapDumpOnOutOfMemoryError
 */
public class Memory {

    public static void main(String[]args){
        List<Integer> list = new ArrayList<>();
        for (int i = 0; ; i++) {
            list.add(new Integer(i));
        }
    }

    public void setIsHeap(boolean b) {
    }
}
